package com.shz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author shz
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Trip implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "行程id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "基地名")
    private String name;
    @ApiModelProperty(value = "培训主题")
    private String title;
    @ApiModelProperty(value = "培训日期")
    @TableField("startDate")
    private LocalDate startdate;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @ApiModelProperty(value = "培训详情")
    private String content;

    @ApiModelProperty(value = "已预约人数")
    @TableField("countNum")
    private Integer countnum;
    @ApiModelProperty(value = "发布人")
    private String username;
    @ApiModelProperty(value = "学时")
    @TableField("studyCourse")
    private Integer studycourse;
    @ApiModelProperty(value = "培训费")
    private Integer price;


}
